package com.wgy.day5;

/**
 * Created by pc on 2020/10/31 22:18
 * Description: Demo1
 */
public class Demo02switch练习 {
    public static void main(String[] args) {
     char num=2;
        switch (num){
            case 1:
                System.out.println("你好");
                break;
            case 2:
                System.out.println("我好");
                break;

            case 3:
                System.out.println("大家好");
                break;
            case 4:
                System.out.println("世界好");
                break;
            default:
                System.out.println("都不好");
                break;



        }

    }
}
